# -*- coding: utf-8 -*-
from django.utils import simplejson

def return_json_response(rhi, json_object):
    '''把Python的字典对象转换为Json字符串返回'''
    rhi.response.headers['content-type']  = 'application/json; charset=utf-8'
    rhi.response.out.write(simplejson.dumps(json_object))    